package com.example.a79273.shandianban;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.a79273.shandianban.BaseActivity;
import com.example.a79273.shandianban.R;

public class OrderActivity extends BaseActivity implements View.OnClickListener {

    private View mViewTablayout;
    private TextView mTextViewTabTitle;
    private ImageView mImageViewBack;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order);
        initView();
        initData();
        setData();
        setListener();
    }

    private void setListener() {
        mImageViewBack.setOnClickListener(this);
    }

    private void setData() {
    }

    private void initData() {
    }

    private void initView() {
        mViewTablayout = (View) findViewById(R.id.in_order_tablaout);
        mTextViewTabTitle = (TextView) mViewTablayout.findViewById(R.id.tv_tablayout_title);
        mTextViewTabTitle.setText("确认订单");
        mImageViewBack = (ImageView) mViewTablayout.findViewById(R.id.iv_tablayout_back);
        mImageViewBack.setImageResource(R.mipmap.return_icon);
    }

    //所有的点击事件
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case  R.id.iv_tablayout_back:
                finish();
                break;
        }
    }
}
